package com.lry.jvm.instructions.loads;
import com.lry.jvm.instructions.base.NoOperandsInstruction;
import com.lry.jvm.rtda.Frame;

//从局部变量表3号位置装载数据到操作数栈
public class dload_3 extends NoOperandsInstruction {

    @Override
    public byte getOpCode() {
        return 0x29;
    }

    @Override
    public void execute(Frame frame) throws Exception {
        double val = frame.getLocalVars().getDouble(3);
        frame.getOperandStack().pushDouble(val);
    }
}